package com.tech.connect.activity;

import android.os.Bundle;
import android.view.View;

import com.gyf.barlibrary.ImmersionBar;
import com.tech.connect.R;

public class SplashActivity extends BaseActivity {

    @Override
    protected boolean isShowHeadBar() {
        return false;
    }

    @Override
    protected void initImmersionBar(ImmersionBar mImmersionBar) {
        mImmersionBar.transparentStatusBar()
                .fitsSystemWindows(false)
                .keyboardEnable(true)
                .init();

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
//        startService(intent);
        findViewById(R.id.iv).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
            }
        });
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                jump2Activity(LoginActivity.class);
//                jump2Activity(com.ksy.video.MainActivity.class);
                destroyActivity();
            }
        }, 500);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
